package lhdx6;

public class Jiashiyuan {
    String mame;
    int nianL;
    public Jiashiyuan(String mame,int nianL){
        this.mame=mame;
        this.nianL=nianL;
    }
    public void jiashi(Qichelei A){
        System.out.println(mame+"启动"+A.pinPai+"汽车,在路上狂飚。");
        System.out.println(mame+"刹车,"+A.pinPai+"汽车,停在路边。");
    }
    public void jiashi(Feiji B){
        System.out.println(mame+"从机场起飞"+B.bianHao+"号，飞机");
        System.out.println(mame+"在机场降落"+B.bianHao+"号，飞机");
    }
    public void jiashi(Tanke C){
        System.out.println(mame+"启动"+C.xingHao+"型号坦克,以"+C.maLi+"马力"+"狂飚");
        System.out.println(mame+"用"+C.xingHao+"型号坦克"+"在山地爬坡");
    }
    public void jiashi(Tuolaji D){
        System.out.println(mame+"开着"+D.pinPai+"拖拉机狂飚");
    }
    public void jiashi(Lunchuan E){
        System.out.println(mame+"开着"+E.pinPai+"轮船,以"+E.hangSu+"航速行驶");
    }
}
